﻿using System.Collections.Generic;
using System.Text;

namespace Facebook.Core.ExtensionMethods
{
    public static class ListExtensions
    {
        public static string ToCSL(this List<int> list)
        {
            StringBuilder builder = new StringBuilder();
            for (int i = 0; i < list.Count; i++)
            {
                builder.Append(list[i]);
                if (i < list.Count - 1)
                    builder.Append(", ");
            }
            return builder.ToString();
        }
    }
}
